package com.KA.service;

import com.KA.dto.ConsumeVo;
import com.KA.dto.InsertMoneyVo;
import com.KA.dto.RefundVo;
import com.KA.dto.checkWalletVo;
import com.KA.entity.UserWallet;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

public interface UserWalletService extends IService<UserWallet> {


    /**
     * 查询钱包余额
     * @param checkWalletVo
     * @return
     */
    BigDecimal checkWallet(checkWalletVo checkWalletVo);


    Boolean consume(ConsumeVo consumeVo);

    Boolean refund(RefundVo refundVo);

    Boolean InsertMoney(InsertMoneyVo insertMoneyVo);
}
